package com.example.springboot02configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Data
@Component
@ConfigurationProperties(prefix = "myconfigclass1")
public class MyConfigClass1 {
    int num ;
    String name;
    List<String> hobby;
    Map<String,Double> score;
    MyConfigClass2 myConfigClass2;

}

